<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<%= stylesheet_link_tag "positioning", :media => 'all' %>
	<%= stylesheet_link_tag "theme", :media => 'all' %>
	<%= javascript_include_tag :defaults    %>	
</head>

<body>
  <div id="header">
    <%= render :partial => "partials/header" -%>
  </div>
  <div id="user">
    <% if logged_in? %>
    <%= render :partial => "partials/greetings" -%>
    <% else %>
    <%= render :partial => "partials/login" -%>
    <% end %>
  </div>
  <div id="main">
    <% if flash[:error] %>
        <%= render :partial => "partials/error" %>
    <% end %>
    <% if flash[:notice] %>
        <%= render :partial => "partials/notice" %>
    <% end %>
    <% if flash[:warning] %>
        <%= render :partial => "partials/warning" %>
    <% end %>
    <%= @content_for_layout %>
  </div>
  <div id="footer"></div>
  
  
</body>
</html>
